const Meta = imports.gi.Meta;
const Shell = imports.gi.Shell;
const St = imports.gi.St;
+const GSystem = imports.gi.GSystem;
const Components = imports.ui.components;
const CtrlAltTab = imports.ui.ctrlAltTab;
const A11Y_SCHEMA = 'org.gnome.desktop.a11y.keyboard';
const STICKY_KEYS_ENABLE = 'stickykeys-enable';
+const GNOMESHELL_STARTED_MESSAGE_ID = 'f3ea493c22934e26811cd62abe8e203a';
let componentManager = null;
let panel = null;
_startDate = new Date();
- log('GNOME Shell started at ' + _startDate);
-
let perfModuleName = GLib.getenv("SHELL_PERF_MODULE");
if (perfModuleName) {
let perfOutput = GLib.getenv("SHELL_PERF_OUTPUT");
if (screenShield) {
screenShield.lockIfWasLocked();
}
+ if (LoginManager.haveSystemd() && sessionMode.currentMode === 'user') {
+ GSystem.log_structured_print('GNOME Shell started at ' + _startDate,
+ ['MESSAGE_ID=' + GNOMESHELL_STARTED_MESSAGE_ID]);
+ } else {
+ log('GNOME Shell started at ' + _startDate);
+ }
});
}